var mongoose = require('mongoose');

mongoose.connect('mongodb+srv://admin:%40123456789@cluster0.23wp5.mongodb.net/Books').then(() => {
    console.log('数据库链接成功');
}).catch((err) => {
    console.log(err);
})

module.exports = mongoose;